Optimal. Leaf size=27 \[ \frac {i}{3 a d (a+i a \tan (c+d x))^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3568, 32}
\begin {gather*} \frac {i}{3 a d (a+i a \tan (c+d x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 32
Rule 3568
Rubi steps
\begin {align*} \int \frac {\sec ^2(c+d x)}{(a+i a \tan (c+d x))^4} \, dx &=-\frac {i \text {Subst}\left (\int \frac {1}{(a+x)^4} \, dx,x,i a \tan (c+d x)\right )}{a d}\\ &=\frac {i}{3 a d (a+i a \tan (c+d x))^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Both result and optimal contain complex but leaf count is larger than twice
the leaf count of optimal. \(56\) vs. \(2(27)=54\).
time = 0.23, size = 56, normalized size = 2.07 \begin {gather*} \frac {i \sec ^4(c+d x) (3+4 \cos (2 (c+d x))+2 i \sin (2 (c+d x)))}{24 a^4 d (-i+\tan (c+d x))^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 24, normalized size = 0.89
method | result | size |
derivativedivides | \(\frac {i}{3 a d \left (a +i a \tan \left (d x +c \right )\right )^{3}}\) | \(24\) |
default | \(\frac {i}{3 a d \left (a +i a \tan \left (d x +c \right )\right )^{3}}\) | \(24\) |
risch | \(\frac {i {\mathrm e}^{-2 i \left (d x +c \right )}}{8 a^{4} d}+\frac {i {\mathrm e}^{-4 i \left (d x +c \right )}}{8 a^{4} d}+\frac {i {\mathrm e}^{-6 i \left (d x +c \right )}}{24 a^{4} d}\) | \(56\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 21, normalized size = 0.78 \begin {gather*} \frac {i}{3 \, {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{3} a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 41, normalized size = 1.52 \begin {gather*} \frac {{\left (3 i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 3 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + i\right )} e^{\left (-6 i \, d x - 6 i \, c\right )}}{24 \, a^{4} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 272 vs. \(2 (19) = 38\).
time = 1.55, size = 272, normalized size = 10.07 \begin {gather*} \begin {cases} - \frac {i \tan ^{2}{\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}}{24 a^{4} d \tan ^{4}{\left (c + d x \right )} - 96 i a^{4} d \tan ^{3}{\left (c + d x \right )} - 144 a^{4} d \tan ^{2}{\left (c + d x \right )} + 96 i a^{4} d \tan {\left (c + d x \right )} + 24 a^{4} d} - \frac {4 \tan {\left (c + d x \right )} \sec ^{2}{\left (c + d x \right )}}{24 a^{4} d \tan ^{4}{\left (c + d x \right )} - 96 i a^{4} d \tan ^{3}{\left (c + d x \right )} - 144 a^{4} d \tan ^{2}{\left (c + d x \right )} + 96 i a^{4} d \tan {\left (c + d x \right )} + 24 a^{4} d} + \frac {7 i \sec ^{2}{\left (c + d x \right )}}{24 a^{4} d \tan ^{4}{\left (c + d x \right )} - 96 i a^{4} d \tan ^{3}{\left (c + d x \right )} - 144 a^{4} d \tan ^{2}{\left (c + d x \right )} + 96 i a^{4} d \tan {\left (c + d x \right )} + 24 a^{4} d} & \text {for}\: d \neq 0 \\\frac {x \sec ^{2}{\left (c \right )}}{\left (i a \tan {\left (c \right )} + a\right )^{4}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 85 vs. \(2 (21) = 42\).
time = 0.73, size = 85, normalized size = 3.15 \begin {gather*} -\frac {2 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 6 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 10 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 6 i \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{3 \, a^{4} d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{6}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.40, size = 19, normalized size = 0.70 \begin {gather*} -\frac {1}{3\,a^4\,d\,{\left (\mathrm {tan}\left (c+d\,x\right )-\mathrm {i}\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________